package exam2006.question12;

import java.util.ArrayList;

public class Main {

	/**
	 * @param args
	 */
	@SuppressWarnings("unchecked")
	public static void main(String[] args) {
		ex1 ex = new ex1();

		Class[] classes = new Class[] { exam2006.question12.A.class,
				exam2006.question12.X.class, exam2006.question12.B.class };
		for (Class c : classes)
			System.out.println(c.getName());

		ArrayList<Class> res = ex.trieClasses(classes);

		System.out.println("->");
		for (Class c : res)
			System.out.println(c.getName());

		System.out.println("");
		classes = new Class[] { exam2006.question12.B.class,
				exam2006.question12.C.class, exam2006.question12.A.class };
		for (Class c : classes)
			System.out.println(c.getName());

		res = ex.trieClasses(classes);

		System.out.println("->");
		for (Class c : res)
			System.out.println(c.getName());

		System.out.println("");
		classes = new Class[] { exam2006.question12.C.class,
				exam2006.question12.A.class };
		for (Class c : classes)
			System.out.println(c.getName());

		res = ex.trieClasses(classes);

		System.out.println("->");
		for (Class c : res)
			System.out.println(c.getName());

		System.out.println("");
		classes = new Class[] { exam2006.question12.D.class,
				exam2006.question12.B.class, exam2006.question12.C.class,
				exam2006.question12.A.class };
		for (Class c : classes)
			System.out.println(c.getName());

		res = ex.trieClasses(classes);

		System.out.println("->");
		for (Class c : res)
			System.out.println(c.getName());

		System.out.println("");
		Object o = ex.classifieEtCreerDe(new String[] { "x", "y" },
				new Object[] { 10, 20.0 }, new Class[] {
						exam2006.question12.D.class,
						exam2006.question12.B.class,
						exam2006.question12.A.class,
						exam2006.question12.C.class });

	}

}
